home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
filutil
/
vndutl13.zip
/
UPL_OZCS.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-07-27
|
3KB
|
76 lines
goto start
:usage
@echo off
echo ┌───────────────────────────────────────────────────────┐
echo │ upl_ozcs.bat -- Builds OzCIS upload script from │
echo │ VENDINFO.DIZ file. │
echo │ │
echo │ usage: │
echo │ upl_ozcs forum library vendinfo_file package │
echo │ where: │
echo │ forum = CompuServe name of desired forum │
echo │ library = library number within forum │
echo │ vendinfo_file = pathname of VENDINFO.DIZ file │
echo │ package = full pathname of upload package │
echo │ │
echo │ example: │
echo │ upl_ozcs SHAREW 0 C:\VENDINFO.DIZ C:\MYPKG100.ZIP │
echo │ │
echo │ NOTE: Invoke in OzCIS MSGS directory. │
echo │ VENDPRCS.EXE must be on your DOS path. │
echo │ NOTE: Presently works only for single-package │
echo │ products (products with only one ZIP) │
echo │ │
echo │ From the VNDUTL VENDINFO Utilities, v1.02 (7/26/94) │
echo │ Copyright 1994 Rams' Island Software, Parker, CO USA │
echo └───────────────────────────────────────────────────────┘
goto done
::----- check arguments -------------------------------------------
::----- third argument must be VENDINFO file pathname ----------
::----- fourth argument must be upload package pathname --------
:start
if %1. == . goto usage
if %2. == . goto usage
if %3. == . goto usage
if %4. == . goto usage
if not exist %3 goto viProblem
if not exist %4 goto pkgProblem
goto argsOK
:argsOK
::----- test VENDINFO file ----------------------------------------
vendprcs %3 -xppt
if errorlevel 52 goto viFileOK
goto viProblem
:viFileOK
::----- do the work -----------------------------------------------
vendprcs -y " " >> %1.ul
vendprcs %3 -xppc -y ";%2;BIN;@.ZIP;%4" >> %1.ul
vendprcs %3 -xpd4 -zc45 >> %1.ul
echo ╠EOM╣ >> %1.ul
vendprcs %3 -xpk -zc45 >> %1.ul
vendprcs %3 -xpp -zn >> %1.ul
vendprcs %3 -xpe -zn -y " @ v" >> %1.ul
vendprcs %3 -xpv -zn -y "@ " >> %1.ul
vendprcs %3 -xpt -y "(@)" >> %1.ul
vendprcs -y " " >> %1.ul
goto done
:viProblem
@echo off
cls
echo Specified VENDINFO file
echo (%3)
echo does not exist, or is corrupted, unregistered, lacks a
echo CompuServe package name, or has some other difficulty.
goto done
:pkgProblem
@echo off
cls
echo Upload package (%4) does not exist.
:done